Skip to content

Add support for retrieving the configuration of the base image#27

Merged
cmainas merged 2 commits intomainfrom
base_image_config
Aug 7, 2025
Merged

Add support for retrieving the configuration of the base image#27
cmainas merged 2 commits intomainfrom
base_image_config

Conversation

@cmainas
Copy link
Collaborator

@cmainas cmainas commented Aug 7, 2025

Change the way we configure the final image, in order to support the reuse of the configuration in the base image. In that way, we are able to keep various configuration options of the base image, such as environment variables, user, group, workdir etc. Furthermore, update the necessary options (i.e. cmd, labels, entrypoint) based on the input of the user.

cmainas added 2 commits July 16, 2025 11:54
Add a new struct (PackConfig) as a new field of Packinstructions to
store useful information for the configuration of the final image. For
the time being only the cmmonad line, the reference of the base image
and the monitor is stored, but in the future, we will store there,
environment variables, user/group and other configuration options of the
final image.

Signed-off-by: Charalampos Mainas <cmainas@nubificus.co.uk>
Change the way we set up the configuration of the final image in order
to support the reuse of the base image's config. In that way, we can
maintain the env variables, labels and other information from the base
image without overwriting them.

Also, improve the readability of the code and create smaller helper
functions with a particular purpose.

Signed-off-by: Charalampos Mainas <cmainas@nubificus.co.uk>
@cmainas cmainas force-pushed the base_image_config branch from 82c080d to eddb24c Compare August 7, 2025 14:23
@cmainas cmainas merged commit 6c0cbc5 into main Aug 7, 2025
7 checks passed
@cmainas cmainas deleted the base_image_config branch August 7, 2025 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant